﻿<%@ Page Title="" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="DJJuninho.Web.Photo.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        <a href="../">Home</a> | Fotos</h2>
    <div class="form-container">
        <div class="bottomhyperlink">
            <a href="Item">Criar um novo item</a>
        </div>
        <asp:GridView ID="gvList" runat="server" CssClass="gridview" DataKeyNames="PhotoId"
            OnRowDeleting="gvList_RowDeleting" AutoGenerateColumns="false" OnRowDataBound="gvList_RowDataBound">
            <Columns>
                <asp:CommandField ShowDeleteButton="true" DeleteText="Apagar" ItemStyle-Width="32px" />
                <asp:HyperLinkField HeaderText="Nome" DataTextField="Url" DataNavigateUrlFields="PhotoId"
                    DataNavigateUrlFormatString="Item/?id={0}" />
                <asp:ImageField DataImageUrlField="Url" DataImageUrlFormatString="~/uploads/{0}" />
            </Columns>
            <EmptyDataTemplate>
                Não existem itens. <a href="Item">Criar um novo item</a>.
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</asp:Content>
